package com.canaan.business.domain.inOutStock;

import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 出库单明细对象 wms_out_stock_detail_order
 *
 * @author ruoyi
 * @date 2022-12-20
 */
@TableName("wms_out_stock_detail_order")
@Data
public class WmsOutStockDetailOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("id")
    private Long id;

    /** 单据明细编号 */
    @Excel(name = "单据明细编号")
    @ApiModelProperty("单据明细编号")
    private String no;

    /** 单据编号 */
    @Excel(name = "单据编号")
    @ApiModelProperty("单据编号")
    private String orderNo;

    /** 单据明细状态 1新建 2已分配 3已拣货 4取消 */
    @Excel(name = "单据明细状态")
    @ApiModelProperty("单据明细状态 1新建 2已分配 3已拣货 4取消")
    private Integer orderDetailStatus;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty("物料编号")
    private String productNo;

    /** 订单数量 */
    @Excel(name = "订单数量")
    @ApiModelProperty("订单数量")
    private Long orderQty;

    /** 拣货数量 */
    @Excel(name = "拣货数量")
    @ApiModelProperty("拣货数量")
    private Long pickingQty;

    /** 退货仓库 */
    @ApiModelProperty("退货仓库编号")
    private String returnStorehouseNo;

    /** 退货仓库 */
    @Excel(name = "退货仓库")
    @ApiModelProperty("退货仓库名称")
    private String returnStorehouseName;

    /** 拣货员 */
    @Excel(name = "拣货员")
    @ApiModelProperty("拣货员")
    private String picker;

    /** 是否删除：1是 0否 */
    @ApiModelProperty("是否删除")
    private String delFlag;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    private Integer sort;

    /** 拣货单编号 */
    @Excel(name = "拣货单编号")
    @ApiModelProperty("拣货单编号")
    private String pickerTaskOrderNo;



    /** 出库仓编号 */
    @Excel(name = "出库仓")
    @ApiModelProperty("出库仓编号")
    private String storehouseNo;

    /** 推荐库位 */
    @Excel(name = "推荐库位")
    @ApiModelProperty("推荐库位")
    private String locations;


    /** 拣货单状态 */
    @ApiModelProperty("拣货单状态")
    private Integer pickerTaskOrderStatus;

    /** 拣货员名称 */
    @ApiModelProperty("拣货员名称")
    private String pickerName;
    /** 物料名称 */
    @ApiModelProperty("物料名称")
    private String productName;
    /** 物料单位 */
    @ApiModelProperty("物料单位")
    private String unit;
    /** 仓库名称 */
    @ApiModelProperty("仓库名称")
    private String storehouseName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("no", getNo())
                .append("orderNo", getOrderNo())
                .append("orderDetailStatus", getOrderDetailStatus())
                .append("productNo", getProductNo())
                .append("orderQty", getOrderQty())
                .append("pickingQty", getPickingQty())
                .append("picker", getPicker())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("createTime", getCreateTime())
                .append("sort", getSort())
                .append("pickerTaskOrderNo", getPickerTaskOrderNo())
                .toString();
    }


}
